package com.platform.dao;

import com.platform.entity.res.ResCase;
import com.platform.utils.Query;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 需求mapper
 */
@Mapper
public interface ApiResCaseMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ResCase> {

    /**
     * 分页查询热门需求
     * @param map
     * @return
     */
    List<ResCase> pageList(Map<String, Object> map);

    /**
     * 查询总记录数
     * @param map
     * @return
     */
    int queryTotal(Map<String, Object> map);

    List<Integer> queryFootmarkByWeek(@Param("userId") Long userId);

    List<Long> queryFootmarkTotal(@Param("userId") Long userId);
}
